<template>
  <div class="container">
  <global-header :user="currentUser"></global-header>
    <column-list :list="list"></column-list>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import 'bootstrap/dist/css/bootstrap.min.css'
import ColumnList, { ColumnProps } from './components/ColumnList.vue'
import GlobalHeader, { UserProps } from './components/GlobalHeader.vue'
const data: ColumnProps[] = [
  {
    id: 1,
    title: '专栏标题1',
    avatar: 'https://img4.sycdn.imooc.com/5458477300014deb02200220-140-140.jpg',
    desc: '专栏描述专栏描述专栏描述专栏描述专栏描述专栏描述专栏描述专栏描述'
  },
  {
    id: 2,
    title: '专栏标题2',
    avatar: 'https://img4.sycdn.imooc.com/5458477300014deb02200220-140-140.jpg',
    desc: '专栏描专栏描述专栏描述专栏描述专栏描述专栏描述专栏描述述'
  },
  {
    id: 3,
    title: '专栏标题3',
    // avatar: 'https://img4.sycdn.imooc.com/5458477300014deb02200220-140-140.jpg',
    desc: '专专栏描述专栏描述专栏描述专栏描述专栏描述专栏描述专栏描述专栏描述专栏描述专栏描述栏描述'
  },
  {
    id: 4,
    title: '专栏标题4',
    avatar: 'https://img4.sycdn.imooc.com/5458477300014deb02200220-140-140.jpg',
    desc: '专栏专栏描述专栏描述专栏描述专栏描述专栏描述专栏描述专栏描述专栏描述专栏描述专栏描述专栏描述描述'
  }
]
export default defineComponent({
  name: 'App',
  components: {
    ColumnList,
    GlobalHeader
  },
  setup () {
    const list = data
    const currentUser:UserProps = {
      id: 1,
      name: 'tom',
      isLogin: true
    }
    return {
      list,
      currentUser
    }
  }
})
</script>
